home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-12-17 | 1.3 KB | 92 lines | [mlts/slnk] |
- !
- ! SL-100 976 script
- ! connects to remote Mac using SL-100 modem pool at 9600 baud.
- !
- ! (c) 1991 Apple Computer
- ! by Jim Baldwin
- !
- ! Version 1.0a1
- !
- @ORIGINATE
- !
- @LABEL 1
- !
- ! communicate with the SL-100 at 9600 baud
- ! send . <cr> to bring up menu
- !
- serreset 9600, 0, 8, 1
- write ".\13"
- pause 10
- !
- ! Dial the number (insert the 9 for outside connection)
- @LABEL 8
- note "Dialing ^1" 3
- write "9^1\13"
- !
- !
- @LABEL 9
- matchstr 1 11 "CONNECT 2400"
- matchstr 2 12 "CONNECT 9600"
- matchstr 3 50 "NO CARRIER"
- matchstr 4 50 "ERROR"
- matchstr 5 52 "NO DIALTONE"
- matchstr 6 53 "BUSY"
- matchstr 7 54 "CALL RELEASED"
- matchstr 8 13 "CONNECTION IN PROGRESS"
- matchstr 9 14 "CALL CONNECTED - SESSION STARTED"
- matchread 700
- jump 59
- !
- @LABEL 11
- note "Communicating at 2400 bps." 2
- serreset 2400, 0, 8, 1
- jump 15
- !
- @LABEL 12
- note "Communicating at 9600 bps." 2
- jump 15
- !
- @LABEL 13
- note "Connection in progress..." 2
- jump 9
- !
- @LABEL 14
- note "Intense beeping back and forth..." 2
- jump 9
- !
- @LABEL 15
- pause 20
- exit 0
- !
- ! @ANSWER
- ! Set up the modem to answer
- ! (SL-100 cannot answer, so just exit)
- !
- @ANSWER
- exit 0
- !
- ! 50: error messages
- ! No carrier
- @LABEL 50
- exit -6021
- ! No Dial Tone
- @LABEL 52
- exit -6020
- ! Busy
- @LABEL 53
- exit -6022
- ! Call Released
- @LABEL 54
- note "The remote modem has hung up on you!" 2
- exit -6021
- ! Modem error
- @LABEL 59
- exit -6019
- !
- ! Hang up the modem
- !
- @HANGUP
- write "+++"
- exit 0
-
-